package com.longxiao.vo;

import java.util.Date;
import java.util.List;

/**
 * Created by houhongwei on 2017/5/11.
 */
public class AppointmentVo {

    // 用户ID
    String userId;
    List<AppointmentTime> times;
    // 房间编号，学生预约使用
    Integer roomId;

    public AppointmentVo(String userId, Integer roomId) {
        this.userId = userId;
        this.roomId = roomId;
    }

    public AppointmentVo(String userId, List<AppointmentTime> times) {
        this.userId = userId;
        this.times = times;
    }

    @Override
    public String toString() {
        return "AppointmentVo{" +
                "userId='" + userId + '\'' +
                ", times=" + times +
                ", roomId=" + roomId +
                '}';
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public List<AppointmentTime> getTimes() {
        return times;
    }

    public void setTimes(List<AppointmentTime> times) {
        this.times = times;
    }

    public Integer getRoomId() {
        return roomId;
    }

    public void setRoomId(Integer roomId) {
        this.roomId = roomId;
    }

    public static class AppointmentTime {

        Date startTime;
        Date endTime;

        public AppointmentTime(Date startTime, Date endTime) {
            this.startTime = startTime;
            this.endTime = endTime;
        }

        @Override
        public String toString() {
            return "AppointmentTime{" +
                    "startTime=" + startTime +
                    ", endTime=" + endTime +
                    '}';
        }

        public Date getStartTime() {
            return startTime;
        }

        public void setStartTime(Date startTime) {
            this.startTime = startTime;
        }

        public Date getEndTime() {
            return endTime;
        }

        public void setEndTime(Date endTime) {
            this.endTime = endTime;
        }
    }
}
